/* Main Module Styles */

@media (min-width:768px) {
    .body-wrapper #content {
        width: calc(100% - 200px);
    }
}

.introtext, .plaintext {
    max-width: 907px;
}

.subhomepage-cossack-weather-map .content-page-branch {
    max-width: 907px;
}

.weather-map-wrapper {
    max-width: 907px;
    /* margin:0 auto; */
    width: 100%;
}

.mateno-map-intro,
.mateno-chart-intro,
.mateno-chart-notes {
    margin-top: 20px;
}

.map-frame {
    border: 1px solid #666;
    position: relative;
}

    .map-frame img {
        width: 100%;
    }

.weather-days {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
    flex-direction: row;
}





.weather-day {
    max-width: 170px;
    background-color: #F4F3F3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 8px;
    border-radius: 4px;
    flex-grow: 1;
    flex-basis: 20%;
    overflow: hidden;
}

.weather-data {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}

.date-block {
    text-align: center;
}

.min, .max {
    grid-column-start: 2;
}

.body-wrapper {
    flex-grow: 1;
}

@media (max-width:767px) {
    .body-wrapper {
        margin-right: 0 !important;
    }
}


/* blue theme */
.map-frame g polygon,
.map-frame g path {
    /* fill:  rgb(215 99 99); */
    fill: #C17549;
}

.map-frame g polygon:hover,
.map-frame g path:hover {
    fill: #A3460F !important;
    transition: fill 100ms;
}

.viewed, .chosen {
    width: 220px;
    margin: 12px;
    position: absolute;
    right: 0;
    padding: 12px;
    font-weight: bold;
    font-size: 2em;
}

.chosen {
    top: 45px;
}

.region-selected {
    fill: yellow !important;
}

.graph-precip {
    width: 100%;
}


.highcharts-figure {
    margin: 0;
    width: 100%;
}


@media (min-width:768px) {
    .d-m {
        display: none;
    }
}

.weather-search {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 46%;
    color: #000;
}

@media (max-width:940px) {
    .weather-search {
        position: static;
        width: 100%;
        color: #000;
        padding: 10px 10px 20px 10px;
    }
}

.legend-row {
    display: flex;
    margin-top: 10px;
}

    .legend-row > div {
        margin-right: 10px;
        flex: 1;
    }

.legend-instructions {
    margin-top: 10px;
    padding-right: 10px;
    font-size: 16px;
}

.legend-instructions-text {
    padding-right: 10px;
    font-size: 16px;
    margin-top: 5px;
}

.weather-search-field {
    position: relative;
}

    .weather-search-field input[type='text'] {
        padding: 12px 0 12px 8px;
        border: 1px solid #3778AF;
        font-size: 16px;
        margin-bottom: 0;
        width: 92%;
    }

#content .weather-search-field input[type='submit'] {
    height: 44px;
    padding: 12px;
    border: 1px solid #3778AF;
    font-size: 16px;
    text-indent: -100px;
    color: #fff;
    background: #3778AF no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 30 30'%3E%3Ccircle id='search' cx='18' cy='11' r='10' style='stroke:%23fff;stroke-width:2;fill:none;'/%3E%3Cline x1='1.2' y1='27.8' x2='11' y2='18.1' style='stroke:%23fff;stroke-width:2;fill:none;'/%3E%3C/svg%3E") !important;
    height: 53px;
    width: 50px;
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 0;
    cursor: pointer;
}

a.btn-weather {
    background: none;
    overflow: hidden;
    display: block;
    float: left;
    margin: 0 0 0 2px;
    text-decoration: none;
    position: absolute;
    width: 50px;
    height: 44px;
    right: 0;
    top: 0;
}

.btn-weather:before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: #3778AF;
}

.btn-weather:after {
    right: 0;
    background: no-repeat 20px center;
    width: 54px;
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 999;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 30 30'%3E%3Ccircle id='search' cx='18' cy='11' r='10' style='stroke:%23fff;stroke-width:2;fill:none;'/%3E%3Cline x1='1.2' y1='27.8' x2='11' y2='18.1' style='stroke:%23fff;stroke-width:2;fill:none;'/%3E%3C/svg%3E");
}

a.btn-weather:before {
    left: 5px;
    transform: skewx(-12deg);
    background: #3778AF;
    z-index: 999;
}

.weather-search-note {
    font-size: 12px;
    padding-top: 2px;
}

.weather-search-message {
    color: #cc0000;
    margin-top: 10px;
    font-size: 14px;
}

.weather-search-note.invalid-search {
    color: #cc0000;
}

.weather-search-field.invalid-search input {
    border: 1px solid #cc0000;
}

.weather-search-field.invalid-search a.btn-weather:before {
    background-color: #cc0000;
}

.weather-search-field.invalid-search input[type='submit'] {
    background-color: #cc0000;
}

.map-frame {
    padding: 10px;
    border: 1px solid #B6B4B4;
}


@media (max-width:939px) {
    /* The easternmost postal codes */
    #pc3720, #pc3770, #pc3760, #pc3700, #pc3790, #pc3730, #pc3740, #pc3782, #pc3751 {
        transform: translateX(-100px);
    }

    .map-frame {
        padding: 0;
        border: 0 none;
        margin-bottom: 20px;
    }

    .weather-search {
        padding: 0;
        margin-bottom: 15px;
    }

    .weather-search-field {
        max-width: initial;
        margin-right: 15px;
    }

        .weather-search-field input {
            width: 94%;
        }
}

@media (max-width:767px) {
    .weather-search-field {
        margin-right: 0;
    }
}


.wi {
    font-size: 2em;
}

.weather-icon {
    padding: 18px 0;
}

img[width='43'] {
    display: none;
}
